package com.fpt.edu.vn.h2tv.exception;

import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.Status;

public class NoPermissionException extends WebApplicationException{
    public NoPermissionException(String message){
        super(Response.status(Status.UNAUTHORIZED).entity(message).type(  
                MediaType.TEXT_PLAIN).build());  
    }
}
